package com.wutong.subject_server.feignInterface;


import com.wutong.common_server.result.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Create By Administrator on 2020/6/16.
 */

@FeignClient(value = "teacher-server",fallback = TeacherServerFallBack.class) //value表示调用的服务名
public interface TeacherServer {


    @GetMapping("/teacher-server/eduTeacher/getTeacherById")
    public String getTeacherById(@RequestParam(value = "id",defaultValue = "1") String id);



}